drop _all
set more off
set virtual on
set memory 3g
set matsize 2000
set logtype text
capture log close
log using T3, replace

use world_child3

** keep only children with full exposure

tab infant_exp
keep if infant_exp==1

* This do file:
* 1) regresses infant mortality on height dummies, all controls, and country*year dummies

** (1)
xi: reg infant tallhalf tall1 tall2 shorthalf short1 short2 malec urban christian muslim otherrel cbirthmth2-cbirthmth12 chld2-chld3 chldm4 age915 age1618 age2530 age3149 educf2-educf4 educm2-educm4 i.countryid*i.yearc, robust cluster(countryid)
sum infant height100 if e(sample)

log close
exit